<!doctype html>
<html>
<head>
	<meta charset="UTF-8">
	<script src="./jq.js"></script>
</head>
<body>
</body>
<script type="text/javascript">
var url = "http://localhost:3004"; // 也可以是本地IP + 3004
$.ajax({
   type: "GET",
   url: url + "/users",
   data: {
	   qqq: 123456
   },
   success: function (res) {
      console.log(res);
   },
   error: function (err) {
      console.log(err);
   },
});

$.ajax({
   type: "GET",
   url: url + "/users/test",
   success: function (res) {
      console.log(res);
   },
   error: function (err) {
      console.log(err);
   },
});

$.ajax({
   type: "GET",
   url: url + "/stu/query",
   success: function (res) {
      console.log('学生信息', res);
   },
   error: function (err) {
      console.log(err);
   },
});

// $.ajax({
//    type: "GET",
//    url: "https://www.easy-mock.com/mock/5fc6084282ad4d43e5fd515e/test1/users",
//    success: function (res) {
//       console.log(res);
//    },
//    error: function (err) {
//       console.log(err);
//    },
// });

</script>
</html>